package dao.impl;

import java.io.Serializable;
import java.util.List;

import entity.*;
import table.AdminTable;

import com.epam.grsulab.webapi.dao.AbstractDao;

/**
 * @author dmitry_zhivushko
 * @since Sep 28, 2014
 */
public class AdminDao extends AbstractDao<AdminTable, Administrator> {

	public AdminDao(final String rootFolderPath) {
		super(rootFolderPath);
	}
	@Override
	public List<Administrator> getAll() {
		// get existing data
		final AdminTable adminTable = deserializeFromXml();
		return adminTable.getRows();
	}
	@Override
	public void saveNew(Administrator entity) {
		// TODO Auto-generated method stub
		
	}
	@Override
	public void update(Administrator entity) {
		// TODO Auto-generated method stub
		
	}
	@Override
	public Administrator get(Serializable id) {
		// TODO Auto-generated method stub
		return null;
	}
	@Override
	public void delete(Serializable id) {
		// TODO Auto-generated method stub
		
	}
	@Override
	protected Class<AdminTable> getTableClass() {
		// TODO Auto-generated method stub
		return null;
	}


}
